import { configureStore } from "@reduxjs/toolkit";
// import reduxLogger from "redux-logger";
import { thunk } from "redux-thunk";
import testReducer from './testReducer/testSlice'

const store = configureStore({
    // 指定reducer
    reducer: {
        // 按模块管理各个切片
        task: testReducer
    },
    // 使用中间件 [如果我们不指定任何中间件，则默认集成了 reduxThunk；但是一但设置，会整体替换默认值，需要手动指定thunk中间件]
    // middleware: (getDefaultMiddleware) => getDefaultMiddleware().concat(thunk)
})

export default store;